<fieldset>

    <legend class="layui-bg-cyan">条件搜索</legend>
    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">真实姓名</label>
            <div class="layui-input-inline">
                <input name="realname" value="{$Think.get.realname|default=''}" placeholder="请输入真实姓名" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">手机号码</label>
            <div class="layui-input-inline">
                <input name="phone" value="{$Think.get.phone|default=''}" placeholder="请输入手机号码" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">学校</label>
            <div class="layui-input-inline">
                <input name="school_id" value="{$Think.get.school_id|default=''}" data-source="{:url('/admin/school/selectpage')}" data-position="fixed" data-field="name" placeholder="学校" class="layui-input selectpage">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">年级</label>
            <div class="layui-input-inline">
                <input name="grade_id" value="{$Think.get.grade_id|default=''}" data-source="{:url('/admin/school_grade/selectpage')}" data-position="fixed" data-field="name" placeholder="年级" class="layui-input selectpage">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">班级</label>
            <div class="layui-input-inline">
                <input name="class_id" value="{$Think.get.class_id|default=''}" data-source="{:url('/admin/school_class/selectpage')}" data-position="fixed" data-field="name" placeholder="班级" class="layui-input selectpage">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
            <!--<button type="button" data-export-list class="layui-btn layui-btn-primary"><i class="layui-icon layui-icon-export"></i> 导 出</button>-->
        </div>
    </form>
    <script>
        window.form.render();
        $('[data-export-list]').on('click', function () {
            window.location.href = '{:url("@")}?s={:url("export",false,false)}&' + $(this).parents('form').serialize()
        });
    </script>
</fieldset>